package cn.shiwei.hr.fegin.search;

import cn.shiwei.hr.doc.CourseDoc;
import cn.shiwei.hr.repository.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(value = "SEARCH-SERVICE-SERVER", fallbackFactory = SearchFeginClientFallBackFactory.class )
@RequestMapping("/search")
public interface SearchFeginClient {

    @PutMapping("/save")
    AjaxResult saveCourse(@RequestBody CourseDoc doc);

    @DeleteMapping("/del")
    AjaxResult deleteCourseById(@RequestParam("id") Long id);
}
